a = 0#初始化变量
while a<100:
    a += 2
    print(a)
else:
    a -= 2
    print(a)
    print('循环结束了')

# a = 0  # 初始化变量
# while True:
#     a += 2
#     print(a)
#     if a == 100:
#         break
# else:#循环正常结束的时候，才执行下面这段代码
#     a -= 2
#     print(a)
#     print('循环结束了')
